#ifndef PROTOCOL_H
#define PROTOCOL_H



#define Type_Start_Bit      0x01
#define Type_Sycle_Bit      0x02
#define Type_DDR3           0x03
#define Type_Flash          0x04
#define Type_Nvsram         0x05
#define Type_Disk           0x06
#define Type_Can            0x07
#define Type_Rs232          0x08
#define Type_Rs422          0x09
#define Type_Rs485          0x0A
#define Type_Gpio           0x0B
#define Type_Adda           0x0C


#define BUFFER_SIZE 1024

UINT8 sendbuf[BUFFER_SIZE];

void handle_tcp_recv_data(UINT8* data);
void packageinit_head( UINT8* sendbuf );
void package_ending( UINT8* target_buf, UINT8* sources_buf, UINT16* len );


#endif



